// 与租金分期交互需要的信息
const SET_RENT_STAGE_URL = 'SET_RENT_STAGE_URL'

// 测试
// let url = 'http://121.40.178.164:8080/innjia-h5/api/route/loading.html'

// 预生产
// let url = 'http://121.40.201.35:8080/innjia-h5/api/route/loading.html'

let url = 'http://rent.innjia.com/innjia-h5/api/route/loading.html'

const state = {
  url: url,
  urlWithoutFromInnjia: url
}

const mutations = {
  [SET_RENT_STAGE_URL](state, { mobile, loginStatus }) {
    state.urlWithoutFromInnjia = state.url +='?mobile=' + mobile +
      '&loginStatus=' + loginStatus

    state.url += '&fromInnjia=innjiaPayRent'
  }
}

export default {
  state,
  mutations
}
